package sy.service.impl;

import java.io.Serializable;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.apache.log4j.Logger;

import sy.dao.SysProjectOwnerMappingDaoI;
import sy.model.SysProject;
import sy.model.SysProjectInformationMapping;
import sy.model.SysProjectOwnerMapping;
import sy.service.SysProjectOwnerMappingServiceI;

@Service("sysProjectOwnerMappingService")
public class SysProjectOwnerMappingServiceImpl implements SysProjectOwnerMappingServiceI {
	
	private static final Logger logger = Logger.getLogger(SysProjectOwnerMapping.class);
	private SysProjectOwnerMappingDaoI sysProjectOwnerMappingDao;


	public SysProjectOwnerMappingDaoI getSysProjectOwnerMappingDao() {
		return sysProjectOwnerMappingDao;
	}

	@Autowired
	public void setSysProjectOwnerMappingDao(SysProjectOwnerMappingDaoI sysProjectOwnerMappingDao) {
		this.sysProjectOwnerMappingDao = sysProjectOwnerMappingDao;
	}

	@Override
	public Serializable save(SysProjectOwnerMapping sysProjectOwnerMapping) {
		
		return sysProjectOwnerMappingDao.save(sysProjectOwnerMapping);
	}

	@Override
	public void remove(SysProjectOwnerMapping sysProjectOwnerMapping) {
		// TODO Auto-generated method stub
		sysProjectOwnerMappingDao.remove(sysProjectOwnerMapping);
	}

	/* (non-Javadoc)
	 * @see sy.service.SysProjectOwnerMappingServiceI#update(sy.model.SysProjectOwnerMapping)
	 */
	@Override
	public void update(SysProjectOwnerMapping sysProjectOwnerMapping) {
		// TODO Auto-generated method stub
		sysProjectOwnerMappingDao.update(sysProjectOwnerMapping);
	}

	/* (non-Javadoc)
	 * @see sy.service.SysProjectOwnerMappingServiceI#list()
	 */
	@Override
	public List<SysProjectOwnerMapping> list() {
		// TODO Auto-generated method stub
		return sysProjectOwnerMappingDao.list();
	}

	/* (non-Javadoc)
	 * @see sy.service.SysProjectOwnerMappingServiceI#getSysProjectOwnerMappingById(java.lang.String)
	 */
	@Override
	public SysProjectOwnerMapping getSysProjectOwnerMappingById(String id) {
		// TODO Auto-generated method stub
		return sysProjectOwnerMappingDao.getSysProjectOwnerMappingById(id);
	}

	/* (non-Javadoc)
	 * @see sy.service.SysProjectOwnerMappingServiceI#listSysProjectOwnerMappingByKey(java.lang.String)
	 */
	@Override
	public List<SysProjectOwnerMapping> listSysProjectOwnerMappingByKey(String key) {
		// TODO Auto-generated method stub
		return sysProjectOwnerMappingDao.listSysProjectOwnerMappingByKey(key);
	}

	@Override
	public List<SysProjectOwnerMapping> listSysProjectOwnerMappingByOwnerId(
			String ownerId) {
		// TODO Auto-generated method stub
		return sysProjectOwnerMappingDao.listSysProjectOwnerMappingByOwnerId(ownerId);
	}

	
	@Override
	public Serializable saveSysProjectOwnerMapping(List<SysProjectOwnerMapping> sysProjectOwnerMapping) {
		// TODO Auto-generated method stub
		return sysProjectOwnerMappingDao.saveSysProjectOwnerMappings(sysProjectOwnerMapping);
	}


}
